<?

function ESC($s) {
    return mysql_real_escape_string($s);
}

function MYSQL_C($host, $user, $pass, $db) {

    $con = mysql_connect($host, $user, $pass, $db); 
	
    if (!$con) {
	
	    die("mysql_connect: ". mysql_error());
		
	} 
	 
	mysql_select_db($db);
}

function MYSQL_Q($q) {

    $r = @mysql_query($q);
	
	if (!$r) {
	
	    die("mysql_query: ".$q." - ". mysql_error());
		
	}  
	
	return $r;
}

$MYSQL_HOST = "localhost";
$MYSQL_USER = "root";
$MYSQL_PASS = "soccer929309";
$MYSQL_DB   = "dinty";

MYSQL_C($MYSQL_HOST, $MYSQL_USER, $MYSQL_PASS, $MYSQL_DB);

?>